%% FILENAME
function FEATURE=config_feature()
FEATURE.R_RIPID=1;
FEATURE.R_ECGID=2;
FEATURE.R_RIPECGID=3;
FEATURE.R_ACLID=4;

FEATURE.R_RIP.INSPDURATION=1;     FEATURE.R_RIP.NAME{1}='Inspiration Duration';
FEATURE.R_RIP.EXPRDURATION=2;     FEATURE.R_RIP.NAME{2}='Expiration Duration';
FEATURE.R_RIP.RESPDURATION=3;     FEATURE.R_RIP.NAME{3}='Respiration Duration';
FEATURE.R_RIP.IERATIO=4;          FEATURE.R_RIP.NAME{4}='IE Ratio';
FEATURE.R_RIP.STRETCH=5;          FEATURE.R_RIP.NAME{5}='Stretch';

FEATURE.R_RIP.EXPRDURATIONRATIO_5=6;FEATURE.R_RIP.NAME{6}='Expiration Duration Ratio 5';

FEATURE.R_RIP.FDBINSP=7;      FEATURE.R_RIP.NAME{7}='First Difference (Backward) for Inspiration Duration';
FEATURE.R_RIP.FDFINSP=8;      FEATURE.R_RIP.NAME{8}='First Difference (Forward) for Inspiration Duration';
FEATURE.R_RIP.FDBEXPR=9;     FEATURE.R_RIP.NAME{9}='First Difference (Backward) for Expiration Duration';
FEATURE.R_RIP.FDFEXPR=10;     FEATURE.R_RIP.NAME{10}='First Difference (Forward) for Expiration Duration';
FEATURE.R_RIP.FDBSTRETCH=11;  FEATURE.R_RIP.NAME{11}='First Difference (Backward) for Stretch';
FEATURE.R_RIP.FDFSTRETCH=12;  FEATURE.R_RIP.NAME{12}='First Difference (Forward) for Stretch';

FEATURE.R_RIP.STRETCHRATIO_5=13;  FEATURE.R_RIP.NAME{13}='Stretch Ratio in 5 cycles';
FEATURE.R_RIP.STRETCHRATIO=14;    FEATURE.R_RIP.NAME{14}='Stretch Ratio';
FEATURE.R_RIP.MXMDSTRCHRATIO=15;  FEATURE.R_RIP.NAME{15}='mxmd_stretch_ratio';
FEATURE.R_RIP.STRETCHUP=16;       FEATURE.R_RIP.NAME{16}='Stretch Up';
FEATURE.R_RIP.STRETCHDOWN=17;     FEATURE.R_RIP.NAME{17}='Stretch Down';

FEATURE.R_RIP.FDBRESP=18;         FEATURE.R_RIP.NAME{18}='First Difference (Backward) for Respiration Duration';
FEATURE.R_RIP.FDFRESP=19;         FEATURE.R_RIP.NAME{19}='First Difference (Forward) for Respiration Duration';

FEATURE.R_RIP.BREATHRATE=20;                       FEATURE.R_RIP.NAME{20}='Breath Rate';
FEATURE.R_RIP.MINUTEVENT=21;                       FEATURE.R_RIP.NAME{21}='Minute Ventilation';

FEATURE.R_RIP.INSPDURQUARTDEV=22;                  FEATURE.R_RIP.NAME{22}='Quartile Deviation of Inspiration Duration';
FEATURE.R_RIP.INSPDURMEAN=23;                      FEATURE.R_RIP.NAME{23}='Mean of Inspiration Duration';
FEATURE.R_RIP.INSPDURMEDIAN=24;                    FEATURE.R_RIP.NAME{24}='Median of Inspiration Duration';
FEATURE.R_RIP.INSPDUR80PERCENT=25;                    FEATURE.R_RIP.NAME{25}='80th Percentile of Inspiration Duration';

FEATURE.R_RIP.EXPRDURQUARTDEV=26;                  FEATURE.R_RIP.NAME{26}='Quartile Deviation of Expiration Duration';
FEATURE.R_RIP.EXPRDURMEAN=27;                  FEATURE.R_RIP.NAME{27}='Mean of Expiration Duration';
FEATURE.R_RIP.EXPRDURMEDIAN=28;                  FEATURE.R_RIP.NAME{28}='Median of Expiration Duration';
FEATURE.R_RIP.EXPRDUR80PERCENT=29;                  FEATURE.R_RIP.NAME{29}='80th Percentile of Expiration Duration';

FEATURE.R_RIP.RESPDURQUARTDEV=30;                  FEATURE.R_RIP.NAME{30}='Quartile Deviation of Respiration Duration';
FEATURE.R_RIP.RESPDURMEAN=31;                  FEATURE.R_RIP.NAME{31}='Mean of Respiration Duration';
FEATURE.R_RIP.RESPDURMEDIAN=32;                  FEATURE.R_RIP.NAME{32}='Median of Respiration Duration';
FEATURE.R_RIP.RESPDUR80PERCENT=33;                  FEATURE.R_RIP.NAME{33}='80th Percentile of Respiration Duration';

FEATURE.R_RIP.IERATIOQUARTDEV=34;                  FEATURE.R_RIP.NAME{34}='Quartile Deviation of IE Ratio';
FEATURE.R_RIP.IERATIOMEAN=35;                    FEATURE.R_RIP.NAME{35}='Mean of IE Ratio';
FEATURE.R_RIP.IERATIOMEDIAN=36;                  FEATURE.R_RIP.NAME{36}='Median of IE Ratio';
FEATURE.R_RIP.IERATIO80PERCENT=37;                  FEATURE.R_RIP.NAME{37}='80th Percentile of IE Ratio';

FEATURE.R_RIP.STRETCHQUARTDEV=38;                  FEATURE.R_RIP.NAME{38}='Quartile Deviation of Stretch';
FEATURE.R_RIP.STRETCHMEAN=39;                    FEATURE.R_RIP.NAME{39}='Mean of Stretch';
FEATURE.R_RIP.STRETCHMEDIAN=40;                  FEATURE.R_RIP.NAME{40}='Median of Stretch';
FEATURE.R_RIP.STRETCH80PERCENT=41;                  FEATURE.R_RIP.NAME{41}='80th Percentile of Stretch';

%% Features for ECG
FEATURE.R_ECG.RR=1;       FEATURE.R_ECG.NAME{1}='RR Interval';
FEATURE.R_ECG.VRVL=2;     FEATURE.R_ECG.NAME{2}='Varience of RR Interval';
FEATURE.R_ECG.LFHF=3;     FEATURE.R_ECG.NAME{3}='Low High Frequency Ratio';
FEATURE.R_ECG.HRP1=4;     FEATURE.R_ECG.NAME{4}='High Frequency Energy';
FEATURE.R_ECG.HRP2=5;          FEATURE.R_ECG.NAME{5}='Medium Frequency Energy';
FEATURE.R_ECG.HRP3=6;          FEATURE.R_ECG.NAME{6}='Low Frequency Energy';

FEATURE.R_ECG.RRMN=7;		FEATURE.R_ECG.NAME{7}='Mean of RR Interval';

FEATURE.R_ECG.RRMD=8;      FEATURE.R_ECG.NAME{8}='Median of RR Interval';
FEATURE.R_ECG.RRQD=9;      FEATURE.R_ECG.NAME{9}='Quartile Deviation of RR interval';
FEATURE.R_ECG.RR80=10;     FEATURE.R_ECG.NAME{10}='80th Percentile of RR Interval';
FEATURE.R_ECG.RR20=11;     FEATURE.R_ECG.NAME{11}='20th Percentile of RR Interval';
FEATURE.R_ECG.RRCT=12;     FEATURE.R_ECG.NAME{12}='Heart Rate';

%% Features for RIP & ECG
FEATURE.R_RIPECG.RSA=1;             FEATURE.R_RIPECG.NAME{1}='RSA';
FEATURE.R_RIPECG.RSAQUARTDEV=43;                             FEATURE.R_RIPECG.NAME{43}='Quartile Deviation of RSA';
FEATURE.R_RIPECG.RSAMEAN=44;                             FEATURE.R_RIPECG.NAME{44}='Mean of RSA';
FEATURE.R_RIPECG.RSAMEDIAN=45;                             FEATURE.R_RIPECG.NAME{45}='Median of RSA';
FEATURE.R_RIPECG.RSA80PERCENT=46;                             FEATURE.R_RIPECG.NAME{46}='80th Percentile of RSA';

%% Accelerometer Feature (Chest Band)
FEATURE.R_ACL.MEANX=1;     FEATURE.R_ACL.NAME{1}='Mean of X';
FEATURE.R_ACL.MEDIANX=2;     FEATURE.R_ACL.NAME{2}='Median of X';
FEATURE.R_ACL.VARIANCEX=3;     FEATURE.R_ACL.NAME{3}='Variance of X';
FEATURE.R_ACL.STDDEVX=4;          FEATURE.R_ACL.NAME{4}='Standard Deviation of X';
FEATURE.R_ACL.AVGFDX=5;          FEATURE.R_ACL.NAME{5}='Average of First Difference Difference of X';

FEATURE.R_ACL.MEANY=6;     FEATURE.R_ACL.NAME{6}='Mean of Y';
FEATURE.R_ACL.MEDIANY=7;     FEATURE.R_ACL.NAME{7}='Median of Y';
FEATURE.R_ACL.VARIANCEY=8;     FEATURE.R_ACL.NAME{8}='Variance of Y';
FEATURE.R_ACL.STDDEVY=9;          FEATURE.R_ACL.NAME{9}='Standard deviation of Y';
FEATURE.R_ACL.AVGFDY=10;          FEATURE.R_ACL.NAME{10}='Average of First Difference of Y';

FEATURE.R_ACL.MEANZ=11;     FEATURE.R_ACL.NAME{11}='Mean of Z';
FEATURE.R_ACL.MEDIANZ=12;     FEATURE.R_ACL.NAME{12}='Median of Z';
FEATURE.R_ACL.VARIANCEZ=13;     FEATURE.R_ACL.NAME{13}='Variance of Z';
FEATURE.R_ACL.STDDEVZ=14;          FEATURE.R_ACL.NAME{14}='Standard Deviation of Z';
FEATURE.R_ACL.AVGFDZ=15;          FEATURE.R_ACL.NAME{15}='Average of First Difference of Z';

FEATURE.R_ACL.AVGDIFFXY=16;     FEATURE.R_ACL.NAME{16}='Average Difference between X & Y';
FEATURE.R_ACL.AVGDIFFYZ=17;     FEATURE.R_ACL.NAME{17}='Average Difference between Y & Z';
FEATURE.R_ACL.AVGDIFFZX=18;     FEATURE.R_ACL.NAME{18}='Average Difference between Z & X';

FEATURE.R_ACL.MEANCROSSINGX=19;     FEATURE.R_ACL.NAME{19}='Mean Crossing of X';
FEATURE.R_ACL.MEANCROSSINGY=20;     FEATURE.R_ACL.NAME{20}='Mean Crossing of Y';
FEATURE.R_ACL.MEANCROSSINGZ=21;     FEATURE.R_ACL.NAME{21}='Mean Crossing of Z';

FEATURE.R_ACL.AVGRATIOXY=22;     FEATURE.R_ACL.NAME{22}='Average Ratio of XY';
FEATURE.R_ACL.AVGRATIOYZ=23;     FEATURE.R_ACL.NAME{23}='Average Ratio of YZ';
FEATURE.R_ACL.AVGRATIOZX=24;     FEATURE.R_ACL.NAME{24}='Average Ratio of ZX';

FEATURE.R_ACL.AVGENERGY=25;          FEATURE.R_ACL.NAME{25}='Average Energy';
FEATURE.R_ACL.MEDIANENERGY=26;          FEATURE.R_ACL.NAME{26}='Median Energy';
FEATURE.R_ACL.VARIANCEENERGY=27;          FEATURE.R_ACL.NAME{27}='Variance of Energy';
FEATURE.R_ACL.STDDEVENERGY=28;          FEATURE.R_ACL.NAME{28}='Standard Deviation of Energy';
FEATURE.R_ACL.AVGFDENERGY=29;          FEATURE.R_ACL.NAME{29}='Average of Forward Difference of Energy';
FEATURE.R_ACL.RANGEENERGY=30;          FEATURE.R_ACL.NAME{30}='Range Energy';
FEATURE.R_ACL.MEANCROSSINGENERGY=31;          FEATURE.R_ACL.NAME{31}='Mean Crossing of Energy';

FEATURE.R_ACL.RANGEX=32;     FEATURE.R_ACL.NAME{32}='Range of X';
FEATURE.R_ACL.RANGEY=33;     FEATURE.R_ACL.NAME{33}='Range of Y';
FEATURE.R_ACL.RANGEZ=34;     FEATURE.R_ACL.NAME{34}='Range of Z';
